﻿using System.Web.UI.WebControls;

namespace N2.Trac.Items
{
	using Details;
	using Templates.Items;
	using Web.UI;

	//[WithEditableName("Name", 01, Required = true)]
	//[WithEditableTitle("Title", 03, Required = true)]
	[TabPanel("trac", "Trac", 05)]
	public abstract class BaseTrackItem: AbstractPage //ContentItem
	{
		#region Business properties

		[EditableTextBox("Description", 05, TextMode = TextBoxMode.MultiLine, ContainerName = "trac", Required = true)]
		public string Description
		{
			get { return this.GetDetail<string>("Description", null); }
			set { this.SetDetail<string>("Description", value); }
		}

		[EditableFreeTextArea("Details", 07, ContainerName = "trac")]
		public string Text
		{
			get { return this.GetDetail<string>("Text", null); }
			set { this.SetDetail<string>("Text", value); }
		}

		[Editable("Assigned To", typeof(N2.Web.UI.WebControls.SelectUser),
			"SelectedUser", 09, ContainerName = "trac")]
		public string AssignedTo {
			get { return this.GetDetail<string>("AssignedTo", null); }
			set { this.SetDetail<string>("AssignedTo", value); }
		}

		#endregion Business properties
	}
}
